package com.miplus.ccrm.core.service.cust;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.github.yulichang.base.MPJBaseService;
import com.miplus.ccrm.common.CmdResVo;
import com.miplus.ccrm.common.JSysUser;
import com.miplus.ccrm.core.controller.vo.cust.CustReqVo;
import com.miplus.ccrm.core.controller.vo.cust.CustResVo;
import com.miplus.ccrm.core.controller.vo.cust.CustStatisticsResVo;
import com.miplus.ccrm.core.controller.vo.cust.CustTagReqVo;
import com.miplus.ccrm.core.pojo.CfgRuleTaskSteps;
import com.miplus.ccrm.core.pojo.ConCustomer;

/**
* @author pc
* @description 针对表【con_customer(客户表)】的数据库操作Service
* @createDate 2024-03-14 11:23:47
*/
public interface ConCustomerService extends MPJBaseService<ConCustomer> {

    IPage<CustResVo> customerQuery(JSysUser user, CustReqVo paras);
    CustStatisticsResVo customerQueryStatistics(JSysUser user, CustReqVo paras);

    CustResVo customerInfo(JSysUser user,String custid);

    CmdResVo updateTags(CustTagReqVo paras);

    int addTag(String custid,String tid,String tagid);

    int addTag(String custid,String tid,String tagid,String batchid);

    int delTag(String batchid);

    int delTag(String custid,String tagid);

    Long checkConditionSql(String sql);

    CmdResVo addCustomerGrpTag(CfgRuleTaskSteps cfgRuleTaskSteps,String sql);
    CmdResVo removeCustomerGrpTag(CfgRuleTaskSteps cfgRuleTaskSteps,String sql);

    CmdResVo addCardScore(CfgRuleTaskSteps cfgRuleTaskSteps, String sql);


}
